﻿using AdminApiTemplate.Infrastructures;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;

namespace Promote.Infrastructures.Domains
{
    /// <summary>
    /// 定时任务执行记录
    /// </summary>
    [Description("定时任务执行记录")]
    [Table("TaskExecuteLog")]
    public class TaskExecuteLog : TableModelBase
    {
        /// <summary>
        /// 耗时
        /// </summary>
        [Description("耗时")]
        public long? CostTime { get; set; }

        /// <summary>
        /// 执行结果
        /// </summary>
        [Description("执行结果")]
        public string Message { get; set; }

        /// <summary>
        /// 是否执行成功
        /// </summary>
        [Description("是否执行成功")]
        public bool? Success { get; set; }

        /// <summary>
        /// 任务Id
        /// </summary>
        [Description("任务Id")]
        public int? TaskId { get; set; }

        /// <summary>
        /// 任务名称
        /// </summary>
        [Description("任务名称")]
        public string TaskName { get; set; }
    }
}
